<template>
  <div id="app">
    <!-- <router-view></router-view> -->
    <keep-alive include="Best,Brand,Life,ProductList,Search">
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
import { wxConfig } from './utils/wx'
import { getBrowserType } from './utils/'

export default {
  mounted() {
    // 配置微信sdk
    wxConfig()

    // 获取浏览器类型
    getBrowserType()
  },
}
</script>

<style>
@import url('./assets/css/base.css');
</style>
